<?php
/**
 * 查找文章
 * [ranknow bbs!] (C)2009-2015 ranknow.cn.
 *
 * @author liwei
 * @This is NOT a freeware, use is subject to license terms
 * @rcsfile $RCSfile: search.php,v $
 * @revision $Revision: 0.1 $
 * @date $Date: 2010/01/04 09:40:17 $
 */
require 'config.inc.php';
include BBS_MDL_PATH . 'mdl_post.php';
$post_list = array();
$searchsearch = $_GET['search']?$_GET['search']:'';
$offset = $_GET['page']?( int )$_GET['page']:0;
dbConnect();
$template = front_load_template( 'search.html' );
$template_data['search'] = $search;

$post_list = get_post_list_by_subject($offset,10,$search,array('search'));
$template_data['post_list'] = $post_list;
$template -> display( $template_data );
windowNoCache();
dbDisconnect();
?>